const Home = () => import(/* webpackChunkName: "oauth" */ '@/views/oauth/home')
// const Login = () => import(/* webpackChunkName: "login" */ '@/views/oauth/login')
const Regist = () => import(/* webpackChunkName: "registtepone" */ '@/views/oauth/regist/regist')
const Useragreement = () => import(/* webpackChunkName: "Useragreement" */ '@/views/oauth/regist/useragreement')
const Message = () => import(/* webpackChunkName: "message" */ '@/views/oauth/message')
const Forgetpassword = () => import(/* webpackChunkName: "forgetpassword" */ '@/views/oauth/forgetpassword')
const ChoiceIdentity = () => import(/* webpackChunkName: "choiceidentity" */ '@/views/oauth/choiceidentity')
const Setting = () => import(/* webpackChunkName: "setting" */ '@/views/oauth/setting')

export default [
  {
    path: '/oauth/home', 
    name: 'oauth',
    component: Home,
    meta: { showTab: true },
  },
  // {
  //   path: '/oauth/login', 
  //   name: 'login',
  //   component: Login,
  // },
  {
    path: '/oauth/regist', 
    name: 'regist',
    component: Regist,
  },
  {
    path: '/oauth/useragreement', 
    name: 'useragreement',
    component: Useragreement,
  },
  {
    path: '/oauth/message', 
    name: 'message',
    component: Message,
  },
  {
    path: '/oauth/setting', 
    name: 'setting',
    component: Setting,
    meta: { requiresAuth: 'oauth' },
  },
  {
    path: '/oauth/forgetpassword', 
    name: 'forgetpassword',
    component: Forgetpassword,
  },
  {
    path: '/oauth/choiceidentity/:id', 
    name: 'choiceidentity',
    component: ChoiceIdentity,
    props: true,
  },
]
